import 'dart:io';

import 'package:wechat_assets_picker/wechat_assets_picker.dart';

extension ExAssetEntity on AssetEntity? {
  Future<String> get getPath async {
    if (this == null) return '';
    File? file = await this!.file;
    if (file == null) return '';
    return file.path;
  }
}
